package cn.com.service.impl;

import cn.com.beans.CollegeInfoExample;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.beans.CollegeInfo;
import cn.com.mapper.CollegeInfoMapper;
import cn.com.service.CollegeInfoService;

import java.util.List;

@Service
public class CollegeInfoServiceImpl implements CollegeInfoService {

    @Resource
    private CollegeInfoMapper collegeInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer coId) {
        return collegeInfoMapper.deleteByPrimaryKey(coId);
    }

    @Override
    public boolean insert(CollegeInfo record) {
        return collegeInfoMapper.insert(record)>0;
    }

    @Override
    public int insertSelective(CollegeInfo record) {
        return collegeInfoMapper.insertSelective(record);
    }

    @Override
    public CollegeInfo selectByPrimaryKey(Integer coId) {
        System.out.println("collegeInfoMapper... = " + collegeInfoMapper.selectByPrimaryKey(coId));
        return collegeInfoMapper.selectByPrimaryKey(coId);
    }

    @Override
    public int updateByPrimaryKeySelective(CollegeInfo record) {
        return collegeInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CollegeInfo record) {
        return collegeInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<CollegeInfo> findAll(CollegeInfo collegeInfo) {
        return collegeInfoMapper.findAll(collegeInfo);
    }

    @Override
    public Integer findRownum(CollegeInfo collegeInfo) {
        return collegeInfoMapper.findRownum(collegeInfo);
    }

    @Override
    public List<CollegeInfo> fuzzyQueryAll(CollegeInfo collegeInfo) {
        return collegeInfoMapper.fuzzyQueryAll(collegeInfo);
    }

    @Override
    public long countByExample(CollegeInfoExample example) {
        return collegeInfoMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CollegeInfoExample example) {
        return collegeInfoMapper.deleteByExample(example);
    }

    @Override
    public List<CollegeInfo> selectByExample(CollegeInfoExample example) {
        return collegeInfoMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(CollegeInfo record, CollegeInfoExample example) {
        return collegeInfoMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CollegeInfo record, CollegeInfoExample example) {
        return collegeInfoMapper.updateByExample(record, example);
    }
}






